//main.js
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import { createPinia } from 'pinia'
import axios from 'axios'

// 确保全局可用
if (typeof window.$ === 'undefined') {
  window.$ = window.jQuery = $;
}

// 检查插件是否加载成功
console.log('jQuery loaded:', typeof $ !== 'undefined');
console.log('mousewheel plugin loaded:', typeof $.fn.mousewheel !== 'undefined');
const app = createApp(App)
app.use(createPinia())
app.use(router)
app.mount('#app')
app.config.globalProperties.$http = axios.create({

  baseURL: 'http://localhost:3000/api'
});
